package zhongbo.java.air.dictionary.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import zhongbo.java.air.dictionary.model.enums.AlertZoneStatus;

import java.util.Date;

@Data
@ApiModel("警戒区域表")
@TableName("air_alert_zone")
public class AirAlertZone {
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("警戒区域id")
    private String id;
    @ApiModelProperty("区域业务编号")
    @TableField("zone_code")
    private String zoneCode;
    @ApiModelProperty("区域类型")
    @TableField("zone_type")
    private AlertZoneStatus zoneType;
    @ApiModelProperty("多边形顶点坐标")
    @TableField("vertices")
    private String vertices;
    @ApiModelProperty("生效开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("effective_start")
    private Date effectiveStart;
    @ApiModelProperty("生效结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("effective_end")
    private Date effectiveEnd;
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("create_time")
    private Date createTime;
    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("update_time")
    private Date updateTime;

}
